﻿<%@ Page Title="Detail" Language="C#" MasterPageFile="~/Views/Shared/Classic.Master" Inherits="ModelViewPage<WorkTimeDto>" %>
<%@ Import Namespace="Revis.VClinicNet.Util.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Dane o godzinach pracy</h2>
    
   <fieldset class="form">
        <%=Html.IfValidationFail()%>
        <div>
            <%=this.Literal(w => w.Day.ToPLString()).Label("Dzień tygodnia:")%>
        </div>
        <div>
            <%=this.Literal(w => String.Format("{0}:{1}", w.BeginHour.ToString("00"), w.BeginMinute.ToString("00")))
                .Label("Początek zmiany:")%>
        </div>
        <div>
            <%=this.Literal(w => String.Format("{0}:{1}", w.EndHour.ToString("00"), w.EndMinute.ToString("00")))
                .Label("Koniec zmiany:")%>
        </div>
        <div>
            <%=this.Literal(w=>w.Room).Label("Pokój:") %>
        </div>
        <div>
            <%=this.Literal(w=>w.IsWorking ? "Tak" : "Nie").Label("Czy pracuje?") %>
        </div>        
    </fieldset>
        
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
